import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";
import SysDictTypeEntity from "../../../entities/system/SysDictTypeEntity";

export type ISysDictType = Omit<SysDictTypeEntity, "validateThis" | "id">;

const SysDictTypeModel = sequelize.define<any, ISysDictType>(
  "sys_dict_type",
  {
    dictName: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    dictType: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    status: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    remark: {
      type: DataTypes.STRING,
      allowNull: true,
    },
  },
  option
);
export default SysDictTypeModel;
